// store.js
import { reactive } from 'vue'

 const store = reactive({
    userId: "",
    destUserId:"",
    chatHistory:[],
    setUserId(userId) {
        this.userId=userId;
    },
    setDestUserId(destUserId){
        this.destUserId=destUserId;
    },
    addChatItem(obj){
        this.chatHistory.push(obj);
    }

});
export default store;